<?php
session_start();
require '../nette/Nette/loader.php';
Debug::enable();
require '../db.php';
require '../localization/lang.php';
require '../core/core.sanitizer.php';
require '../core/core.jobs.php';
require '../core/core.time.php';
require '../core/core.security.php';

$login=new core_security;
$time=new core_time;

if ($login->checklogin()=="OK") {
if (isset($_POST['jid']) AND isset($_POST['jdesc']) AND isset($_POST['ujid'])) {
	$query="update userjobs set jid=".$_POST['jid'].", jdesc='".$_POST['jdesc']."' WHERE id=".$_POST['ujid']."";
	mysql_query($query);
	}

}
?>
